package com.wyh.abst;

import lombok.Data;

public class Dog extends Animal{
    @Override
    public void sleep() {
        System.out.println("Dog sleeping......");
    }

    public static void main(String[] args) {
        Animal animal = new Dog();
        animal.run();
        animal.sleep();
    }
}
